package com.pkk.cloud.support.admin.mybatis.resource;

import com.pkk.cloud.support.admin.entity.resource.PenguinSysUrlResource;
import java.util.HashMap;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface PenguinSysUrlResourceMapper {

  /**
   * @Description: 保存接口资源信息
   * @Param: record
   * @return: int
   * @Author: peikunkun
   * @Date: 2020/4/22 0022 下午 3:16
   */
  int insertSysUrlResource(PenguinSysUrlResource record);


  /**
   * @Description: 删除接口与资源的绑定关系依据资源id
   * @Param: resourceId
   * @return: boolean
   * @Author: peikunkun
   * @Date: 2020/4/22 0022 下午 3:15
   */
  int delSysUrlByResourceId(Long resourceId);


  /**
   * @Description: 批量保存接口与资源的数据关系
   * @Param: resourceId
   * @Param urls
   * @return: void
   * @Author: peikunkun
   * @Date: 2020/4/22 0022 下午 3:20
   */
  int batchSaveSysResourceUrl(HashMap<String, Object> condition);

}